#27 ✓invalid
Matt Patterson

RiCal date conversion methods use DateTIme#utc_time which is an ActiveSupport extentsion

Reported by Matt Patterson | December 20th, 2009 @ 04:24 AM

RiCal's datetime #to_time conversion method uses DateTIme#utc_time, which is an ActiveSupport DateTime extension.

This is only a problem if ActiveSupport isn't declared as a required dependency

Comments and changes to this ticket

  • Rick DeNatale

    Rick DeNatale December 20th, 2009 @ 10:02 AM

    This actually appears to be in code which isn't actually used by ri_cal.

    I've removed the definitions of both DateTime#to_time, and Date#to_time in the cases where ActiveSupport isn't loaded, and all specs still pass.

    Note that ri_cal doesn't declare activesupport or tzinfo as a gem dependency since it will work with either, and rubygems don't allow alternate dependencies to be declared.

  • Matt Patterson

    Matt Patterson December 20th, 2009 @ 02:30 PM

    Great. Sorry I didn't have time to investigate more thoroughly and file a better ticket...

  • Rick DeNatale

    Rick DeNatale April 16th, 2010 @ 06:19 PM

    • State changed from “new” to “invalid”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A new icalendar data (RFC 2445) gem for Ruby which supports time zones and enumeration of occurrences

Shared Ticket Bins

People watching this ticket